package com.the_ring.behavior.iterator;

import java.util.ArrayList;

/**
 * @author: t22306139
 * @date: 2023/12/1  14:11
 */
public class ShopMenu {

    private final ArrayList<MenuItem> menuItems;

    public ShopMenu() {
        menuItems = new ArrayList<>();

        addItem("KFC Cake Breakfast", "boiled eggs & toast&cabbage", 3.99f);
        addItem("MDL Cake Breakfast", "fried eggs & toast", 3.59f);
        addItem("Strawberry Cake", "fresh strawberry", 3.29f);
        addItem("Regular Cake Breakfast", "toast & sausage", 2.59f);
    }

    public void addItem(String name, String description, float price) {
        MenuItem menuItem = new MenuItem(name, description, price);
        menuItems.add(menuItem);
    }

    public ArrayList<MenuItem> getMenuItems() {
        return menuItems;
    }
}
